import Vue from 'vue'
import Vuex from 'vuex'
import * as getters from './getters'
import * as mutations from './mutations'
import * as actions from './actions'

Vue.use(Vuex)
/**
 *
 * @param isAuthenticated 用户是否登录
 * @param user 用户信息
 * @type {{isAuthenticated: boolean, user: null}}
 */
const state = {
    userId:"",//用户id
    token:'',//token
    cartId:"",//名片id
}
export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions
})
